package com.manage.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/html")
public class WebIndexController {
    @RequestMapping(value = "/passwordLogin", method = RequestMethod.GET)
    public String thymeleaf(Model model) {
        model.addAttribute("name", "wanghuanlong");
        return "passwordLogin";
    }

    @RequestMapping(value = "/html_hello", method = RequestMethod.GET)
    public String xixi(Model model) {
        model.addAttribute("name", "wanghuanlong");
        return "xixi";
    }
}
